<?php
namespace core;

class cmd
{
    public static function check()
    {
        $cmd = $_GET['cmd'];
        if (empty($cmd)) {
            return false;
        }
        $cgipath = ROOT_DIR . "/app/{$cmd}/main.php";
        if (! file_exists($cgipath)) {
            return false;
        }
        return true;
    }
}